<?php

/**
 * Comment class.
 * 
 * @author oanhnn
 */
class Comment extends AppModel {

    /**
     * Validation rules
     *
     * @var array
     */
    public $validate = array();

    /**
     * hasMany
     * 
     * @var array
     */
    public $hasMany = array();

    /**
     * hasOne
     * 
     * @var array
     */
    public $hasOne = array();

    /**
     * belongTo
     * 
     * @var array
     */
    public $belongTo = array(
        'Author' => array(
            'className' => 'User',
            'foreignKey' => 'user_id',
            'dependent' => true
        ),
        'Post' => array(
            'classname' => 'Post',
            'foreignKey' => 'post_id',
            'dependent' => true
        )
    );

}
